package com.hpeu_12.app;

import java.util.Scanner;

public class FamilyAccount {
	public static Scanner scanner =new Scanner(System.in);
	/**
	 * 打印菜单信息
	 */
	public static void view() {
		System.out.println("\n-------------------------------家庭收支记账软件-------------------------------\n");
		System.out.println("1.收支明细");
		System.out.println("2.收入金额");
		System.out.println("3.支出金额");
		System.out.println("4.退       出\n");
		System.out.print("请选择(1-4):");
	}
	/**
	 *读取键盘 
	 */
	public static int readMenuSelection() {
		int number = scanner.nextInt();
		int menuCode=0;
		if (number==1||number==2||number==3||number==4) {
			menuCode=number;
		}else {
			System.out.println("输入错误请重新输入");
		}
		return menuCode;
	}
	
	public static void main(String[] args) {
		view();
	}
}
